package com.example.ordersystem.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.ordersystem.entity.Product;

public interface ProductService {
    Page<Product> page(Integer pageNum, Integer pageSize, String name);

    void save(Product product);

    void update(Product product);

    void removeById(Integer id);

    Product getById(Integer id);

    void removeByName(String name);

    boolean existsByName(String name);
}